package com.dlnu.shoping.shopping.mapper;

import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.dlnu.shoping.shopping.entity.Recommend;
import org.apache.ibatis.annotations.Select;

/**
 * (Recommend)表数据库访问层
 *
 * @author makejava
 * @since 2023-06-29 10:08:01
 */
@Mapper
public interface RecommendDao extends BaseMapper<Recommend> {
    @Select(value = "SELECT p.pro_id,p.intro,p.category_id,p.price,p.picture from recommend r,product_information p WHERE r.pro_id = p.pro_id ORDER BY r.orders")
    List<HashMap> queryRecommend();
}

